
{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/head",KUO,THIS) }}

{{#
    let $ZITYPE  = await THIS.TYPE_select({'off':2,'subclass':KUO.$ZDATA && KUO.$ZDATA['id']&& KUO.$ZDATA['id']>0?KUO.$ZDATA['id']:KUO.$DATA['id']});
    if($ZITYPE){
    }}
    <div class="kuodatype">
        <div class="layui-container kuodatypetop">
            <div class="kuodatypelist">
            
            <ul class="cate-list clearfix">
                <li class="cate-item {{KUO.$DATA['subclass'] == 0?'active':'' }}">
                    <a href="{{KuoLink([ KUO.CLASS, KUO.$ZDATA && KUO.$ZDATA['id']&& KUO.$ZDATA['id']>0?KUO.$ZDATA['url']:KUO.$DATA['url'] ])}}">全部</a>
                </li>

                {{#
                    for(var zz in $ZITYPE){
                        let DATA = $ZITYPE[zz];
                        
                }}
                <li class="cate-item {{DATA.url == KUO.$DATA['url']?'active':'' }}">
                    <a href="{{ KuoLink( [KUO.CLASS,DATA.url] ) }}">{{DATA.name}}</a>
                </li>
                {{#    } }}
                
                </ul>
        
            </div>
            <div class="layui-clear"></div>
        </div>  
    </div>

{{#    } }}

{{#
    let $WWH = {'subclass IN':await THIS.TYPE_BAOHAN(KUO.$DATA['id']),'off':2}; 
   
    let $MEYE = 18;
    let $游戏数据 = await  THIS.CENTER_select($WWH,"atime desc",($MEYE+','+KUO.PAGE)  );
    let $DB = await db('cms_content');
    let $TOTAL =  await $DB.Where($WWH).Total();

}}
<div class="kuolist">
    <div class="layui-container ">
        <div class="kuolistnav">
            <a href="{{WZHOST}}">首页</a> > 
            {{# if( KUO.$ZDATA && KUO.$ZDATA['id']&& KUO.$ZDATA['id']>0 ){ }}
            <a href="{{KuoLink([ KUO.CLASS, KUO.$ZDATA['url']])}}">{{KUO.$ZDATA['name']}}</a> > 
            {{# } }}
            <span>{{KUO.$DATA['name']}}</span>
            <p class="layui-right youbian">共<span class="tishi">{{ $TOTAL }}</span> 条筛选结果</p>
        </div>
        <div class="layui-row layui-col-space15">
            {{#
          
            if( $游戏数据 ){
                for(let $ii in $游戏数据 ){
                    let $eli = $游戏数据 [$ii ];
                    let $eliurl = KuoLink([ KUO.CLASS, $eli['url'] ]);
                    
            }}

            <div class="layui-col-md2 layui-col-xs6 kuolistbody">
                <div class="tupian">
                    <a href="{{$eliurl}}"><img src="{{CDNHOST}}Tpl/cms/manhua/image/loadimg.png" lay-src="{{pichttp($eli.photo)}}" class="image"></img>
                        {{# if($eli.remarks && $eli.remarks != ""){ }}
                        <span class="jiaobiao"> {{$eli.remarks}}</span>
                        {{# } }}
                    </a>
                </div>
                <div class="biaoti">
                   
                    <a href="{{$eliurl}}">{{$eli.name}}</a>
                </div>
                <div class="gengxin">
                    更至：<span class="zuixin">{{$eli.char1}}</span>
                </div>
                <div class="renqi">
                    人气：{{$eli.popularity}}
                </div>
                
            </div>
                {{#
                }   }else{  }}
                    <div class="Nodata">
                        没有相关数据
                    </div>
                {{# } }}
          
        </div>

        {{#

            if($TOTAL > $MEYE){
        }}  <div class="center">
                    <div class="pageddd">{{ Mode("Tools").Fenye( $MEYE , $TOTAL  , 5 , KUO.PAGE ,KuoLink([ KUO.CLASS, KUO.$DATA['url'] ],2) , WebExt ) }} 
                    <div  style="clear:both;"></div>
                    </div>
                </div>
        {{# } }}

      
        <div class="layui-clear"></div>
    </div>
</div>

{{ await Mode("TPL").Render("@"+KUO.CLASS+"/"+TPLtemp+"/foot",KUO,THIS) }}
<script>
var height = 0;
$(function(){

  layui.flow.lazyimg(); 
});
</script>